package cc.shacocloud.mirage.demo.java.config;

import cc.shacocloud.mirage.bean.InitializingBean;
import cc.shacocloud.mirage.bean.bind.Bean;
import cc.shacocloud.mirage.bean.bind.Configuration;
import lombok.extern.slf4j.Slf4j;

/**
 * @author 思追(shaco)
 * @date 2023/3/3
 */
@Configuration
public class TestConfiguration {

    @Slf4j
    public static class TestBean implements InitializingBean {

        @Override
        public void init() throws Exception {
            log.info("testBean 初始化成功：{}", this);
        }
    }

    @Bean(lazy = false)
    public TestBean testBean() {
        return new TestBean();
    }
}
